package com.dykj.apps.web.sysmanager.service;

import java.util.List;
import java.util.Map;

import com.dykj.apps.web.sysmanager.dto.SysUserDTO;
import com.dykj.platform.framework.common.paging.Page;
import com.dykj.platform.framework.exception.ApplicationException;

public interface IUserManagerBS {
	public int saveOrUpdateUser(SysUserDTO dto) throws ApplicationException;
	public int saveOrUpdateUserRenew(SysUserDTO dto) throws ApplicationException;
	public int delUser(String key) throws ApplicationException;
	public SysUserDTO getOneSysUser(String id)throws ApplicationException;
	public List querySysUser(SysUserDTO dto,Page page)throws ApplicationException;
	
	/**
	 * roleid 为空时,查询没角色的用户,不为空时,查询有角色的用户
	 * @param roleid
	 * @param groupid
	 * @return
	 * @throws ApplicationException
	 */
	public List queryRoleUser(Long roleid,String groupid)throws ApplicationException;
	public List queryAuthUser(Long authid)throws ApplicationException;
	public Map queryAllAuth(String authid) throws ApplicationException;
	public Map queryAllRole(String roleid)throws ApplicationException;
	public Map getGroupMap( String type , String groupid)throws ApplicationException;
}
